package com.acme.task3;

public class Arrays {
	static float add(int []n){
		int sred=0;
		for(int i=0;i<n.length;i++) {
			System.out.print(i+" ");sred+=n[i];
		}
		return sred/n.length;
	}
	public static void main(String[] args) {
		int i;
		for (i = 1; i <= 50; i++) {
			if (i%3==0){
 				 System.out.println("Number "+i+" divisible by 3");
			} 
			else{
				System.out.println(i);
			}
		}
		int k=10;
		int n[]=new int[k];
		for(i=0;i<k;i++) n[i]=i;
		System.out.println("Mean: "+Arrays.add(n));
	}
}